package com.peng.androidlib.mvpbase;

import android.content.Context;

/**
 * Created by Mr.Q on 2016.07.11:53
 * 描述：
 *  用于 BaseActivity 泛型限制，在上层使用 mvp 模式时，具体 Presenter 需要实现该接口
 */
public abstract class BasePresenter<V extends BaseView, M extends BaseModel> {
    public Context mContext;
    public M mModel;
    public V mView;

    public BasePresenter(V v, M m){
        mView = v;
        mModel = m;
        this.onStart();
    }

    public void onStart() {
    }


    public void onDestroy() {

    }
}
